####################################################################
#
# HoI - Africa
#
# LIMIT:  552000 - 601999
#
# 552000 - (EGY) Abdin Palace Coup - Italian invasion
# 552001 to 552003 - used
# 552004 - Creation of a Ethiopian Vassal state under Italian control
# 552005 - Ethiopian Revolt
# 552006 - Italian East Africa Conquered!
# 552007 to 552010 - Italian response to our offer of peace
# 552011 - Ethiopian demands Claims on Italian East Africa
# 552012 to 552014 - UK response to our claim
# 552015 - In Memoriam, HRH King Fu`ad (by OHgamer)
#
#		written by Generalisimo
#		Ethiopian-Italy war ideas by Aetius :)
#
####################################################################

#########################################################################
#  Abdin Palace Coup - Italian invasion
#########################################################################
event = {  
	id = 552000
	random = no
	country = EGY

	trigger = {
		exists = ENG
		exists = ITA
		OR = {
			control = { province = 1090 data = ITA } #Matruh in Italian hands
			control = { province = 1198 data = ITA } #Bur Sudan in Italian hands
			control = { province = 1199 data = ITA } #Kassala in Italian hands
		}
		# puppet = { country = SYR country = VIC } #Syria is Vichy Puppet, removed for test
#		OR = {
#			alliance = { country = GRE country = GER } #Axis Greece
#			alliance = { country = TUR country = GER } #Axis Turkey
#			 any posible axis country controls Athens
#			control = { province = 891 data = ITA } # Italians in Athens
#			control = { province = 891 data = GER } # Germans in Athens 
#			control = { province = 891 data = BUL } # Bulgaria in Athens
#			control = { province = 891 data = ROM } # Romania in Athens
#			control = { province = 891 data = HUN } # Hungary in Athens
#			control = { province = 891 data = SPA } # Nat.Spain in Athens
#			}
		NOT = {
			OR = {
				alliance = { country = GER country = IRQ } 
				alliance = { country = SOV country = IRQ } 
				war = { country = IRQ country = ENG }
				}
			}
		}

	name = "The Abdin palace coup"
	desc = "With the Axis advances in North Africa, the British situation in Egypt was, at least, uncertain. Egypt became a United Kingdom protectorate during the First World War, and though they achieved more independent status during the 20s (with a nominal monarchy, a Constitution, and the 1936 Anglo-Egyptian Treaty), British interests in Egypt were still very important. The British held strategic provinces and often intervened in the affairs of Egypt. King Faruq had been in power only since 1936, and the British did not know what to expect from him. Fearing that he would join the Axis if they continued their successful advance, British forces surrounded his palace and demanded him the formation of a pro-British government."
	style = 0
	
		
	date = { day = 1 month = january year = 1937 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = { 
		name = "Accept the British demands and join the Allies" # Accept British Demands and form Wafd government
		command = { type = headofstate which = 96021 }
		command = { type = headofgovernment which = 96022 }
		command = { type = foreignminister which = 96023 }
		command = { type = armamentminister which = 96024 }
		command = { type = ministerofsecurity which = 96025 }
		command = { type = ministerofintelligence which = 96006 }
		command = { type = chiefofstaff which = 96007 }
		command = { type = chiefofarmy which = 96008 }
		command = { type = chiefofnavy which = 96009 }
		command = { type = chiefofair which = 96010 } 
		command = { type = alliance which = ENG } 
          }

	action_b = { 
		name = "Refuse the British demands and join the Axis" # End British Domination Of Egypt and join the Axis
		command = { type = end_access which = ENG }
		command = { type = war which = ENG }
		command = { type = alliance which = ITA } 
		command = { type = dissent value = 20 }
	}
}

#########################################################################
#  Abdin Palace Coup - German invasion East
#########################################################################
event = {  
	id = 552001
	random = no
	country = EGY
	
        trigger = {
			exists = ENG
	   		control = { province = 1206 data = GER }
			NOT = {
				OR = {
					alliance = { country = GER country = EGY } 
					alliance = { country = SOV country = EGY } 
					war = { country = EGY country = ENG }
					}
				}
		}
	
        name = "The Abdin palace coup"
	desc = "With the Axis advances in North Africa, the British situation in Egypt was, at least, uncertain. Egypt became a United Kingdom protectorate during the First World War, and though they achieved more independent status during the 20s (with a nominal monarchy, a Constitution, and the 1936 Anglo-Egyptian Treaty), British interests in Egypt were still very important. The British held strategic provinces and often intervened in the affairs of Egypt. King Faruq had been in power only since 1936, and the British did not know what to expect from him. Fearing that he would join the Axis if they continued their successful advance, British forces surrounded his palace and demanded him the formation of a pro-British government."
	style = 0
	
		
	date = { day = 1 month = january year = 1937 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = { 
		name = "Accept the British demands and join the Allies" # Accept British Demands and form Wafd government
		command = { type = headofstate which = 96021 }
		command = { type = headofgovernment which = 96022 }
		command = { type = foreignminister which = 96023 }
		command = { type = armamentminister which = 96024 }
		command = { type = ministerofsecurity which = 96025 }
		command = { type = ministerofintelligence which = 96006 }
		command = { type = chiefofstaff which = 96007 }
		command = { type = chiefofarmy which = 96008 }
		command = { type = chiefofnavy which = 96009 }
		command = { type = chiefofair which = 96010 } 
		command = { type = dissent value = 20 }
		command = { type = alliance which = ENG } 
          }
	action_b = { 
		name = "Refuse the British demands and join the Axis" # End British Domination Of Egypt and join the Axis
		command = { type = end_access which = ENG }
		command = { type = war which = ENG }
		command = { type = alliance which = GER } 
		command = { type = dissent value = 20 }
	}
}

#########################################################################
#  Anglo-Egyptian Treaty of Defense Activated
#########################################################################

event = {  
            id = 552002
            random = no
            country = EGY

            trigger = {
			exists = ENG
            		OR = {
                        	war = { country = EGY country = GER }
	                        war = { country = EGY country = TUR }
	                        war = { country = EGY country = ITA }
	                        war = { country = EGY country = GRE }
 		                }
			NOT = {
				OR = {
					alliance = { country = GER country = EGY } 
					alliance = { country = SOV country = EGY } 
					war = { country = EGY country = ENG }
					}
				}
	               }     

            name = "Activation of the 1936 Anglo-Egyptian defense treaty"
            desc = "In 1936, after several years of negotiations and efforts to achieve a higher level of self-government, and with the pressure originated with the Italian invasion of Ethiopia, the United Kingdom finally agreed to sign a Anglo-Egyptian Treaty. Although the treaty did not include dismantling of British garrisons, and did not reduce British meddling in Egyptian affairs, it was a decisive step forward. The treaty guaranteed that the United Kingdom would always respect Egyptian independence and self-government, and would protect Egypt from any outside aggression."
            style = 0

            date = { day = 1 month = january year = 1936 }
            offset = 5
            deathdate = { day = 30 month = december year = 1947 }

            action_a = { 
                        name = "Request that Britain send aid" # Britain comes to Egypts Defense
                        command = { type = alliance which = ENG } 
                        command = { type = dissent value = -20 }
         	 }

            action_b = { 

                        name = "Do not request aid; we need no help" # We can handle this ourselves, ask in the Brits and theyll stay forever!
                        command = {  }
          	}
}


#########################################################################
#  Creation of a Ethiopian Vassal state under Italian control (by Generalisimo)
#########################################################################
event = { 
	id = 552004
	random = no
	country = ETH

	#triggered by ITA 462007 B

	name = "Creation of a Ethiopian Vassal"
	desc = "When Benito Mussolini took power in Italy, one of his first objectives was to resume plans to expand Italian influence in Ethiopia, thereby taking revenge for the humiliating defeat of the Italian army in 1896. The League of Nations voiced its disgust with this new war in Abysinia, but did not take any serious measures to try to stop it. Addis Abeba was in Italian hands by May, 1936."
	style = 0
	
	action_a = {
		name = "Italy has taken control and installed a new government" # ok
		command = { type = alignment which = fascist value = 200 }
		command = { type = headofstate which = 65011 }
		command = { type = headofgovernment which = 65012 }
		command = { type = foreignminister which = 65013 }
		command = { type = armamentminister which = 65014 }
		command = { type = ministerofsecurity which = 65015 }
		command = { type = ministerofintelligence which = 65016 }
		command = { type = chiefofstaff which = 65017 }
		command = { type = chiefofarmy which = 65018 }
		command = { type = chiefofnavy which = 65019 }
		command = { type = chiefofair which = 65020 }
		command = { type = dissent value = 5 }
		command = { type = access which = ITA }
		}
}

#########################################################################
#  Ethiopian Revolt (by Generalisimo)
#########################################################################
event = { 
	id = 552005
	random = no
	country = ETH
	persistent = yes

	# triggered by:
	# 462008 to 462014 - Ethiopian Freedom Fighters for 1937
	# 462040 to 462046 - Ethiopian Freedom Fighters for 1938
	# 462047 to 462053 - Ethiopian Freedom Fighters for 1939
	# 462054 to 462060 - Ethiopian Freedom Fighters for 1940
	# 462061 to 462067 - Ethiopian Freedom Fighters for 1941
	# 462068 to 462074 - Ethiopian Freedom Fighters for 1942

	name = "The Ethiopian revolts against Italian colonialism"
	desc = "Ethiopian freedom fighters occasionally rose up against Italian colonial rule."
	style = 0
	
	action_a = {
		name = "We shall fight for our freedom" # ok
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = war which = ITA }
	}
}

#########################################################################
#  Italian East Africa Conquered! (by Generalisimo)
#########################################################################
event = { 
	id = 552006
	random = no
	country = ETH

	trigger = {
		NOT = {
			alliance = { country = ETH  country = ENG } # not allied
			}
		war = { country = ETH  country = ITA }
		control = { province = 1299 data = ETH } # Obbia
		control = { province = 1302 data = ETH } # Mogadishu
		control = { province = 1285 data = ETH } # Asmara
		#control = { province = 1301 data = ETH } # Kismayo
		}

	name = "The Ethiopian defense against the Italian invasion"
	desc = "Upon seizing control of important strategic provinces in Italian East Africa, a prominant Ethiopian leader was heard making the following remarks: This day will forever be in the memory of our country: the filthy Fascist invasion of our homeland has been repulsed by our brave people. The modern weapons of the once proud Italian army were no match the power of the sun, the desert, and the mountains, that fought on our side against our terrible foes. Now that we have forced all Fascist troops out of our land, it is time to make our demands. We control Obbia, Mogadishu and Asmara, and we now have the power to sue for peace with Italy."
	style = 0

	date = { day = 1 month = april year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = "Demand peace and freedom" # ok
		command = { type = trigger which = 462015 } #ITA
		}
	action_b = {
		name = "Continue fighting the Fascists" # no
		command = {  }
		}
}

#########################################################################
#  Italian response to our offer of peace (by Generalisimo)
#  552007 to 552010
#########################################################################
event = { 
	id = 552007
	random = no
	country = ETH

	# 462015 ITA

	name = "Italy agrees to Ethiopian demands"
	desc = "Italy responded to Ethiopian demands for control of the country, and decided to peacefully restore their full sovereignity."
	style = 0
	
	action_a = {
		name = "Excellent, we are sovereign once again" # ok
		command = { type = addcore which = 1299 }
		command = { type = addcore which = 1302 }
		command = { type = addcore which = 1285 }
		#command = { type = peace which = ITA value = 1 }
		command = { type = dissent value = -20 }
		}
}

event = { 
	id = 552008
	random = no
	country = ETH

	# 462015 ITA

	name = "Italy offers Eritrea to Ethiopia"
	desc = "Italy responded to Ethiopian demands for control of the country, and decided to only relinquish control of Asmara."
	style = 0
	
	action_a = {
		name = "Accept the offer, it is enough" # ok
		command = { type = addcore which = 1285 }
		#command = { type = peace which = ITA value = 0 }
		command = { type = dissent value = -20 }
		command = { type = trigger which = 462016 } #ITA
	}
	action_b = {
		name = "Refuse the offer, it is not enough" # no
		command = { type = trigger which = 462017 } #ITA
	}
}

event = { 
	id = 552009
	random = no
	country = ETH

	# 462015 ITA

	name = "Italy offers Somaliland to Ethiopia"
	desc = "Italy responded to Ethiopian demands for control of the country, and decided to only relinquish control of Obbia and Mogadishu."
	style = 0
	
	action_a = {
		name = "Accept the offer, it is enough" # ok
		command = { type = addcore which = 1299 }
		command = { type = addcore which = 1302 }
		#command = { type = peace which = ITA value = 0 }
		command = { type = dissent value = -20 }
		command = { type = trigger which = 462018 } #ITA
	}
	action_b = {
		name = "Refuse the offer, it is not enough" # no
		command = { type = trigger which = 462019 } #ITA
	}
}

event = { 
	id = 552010
	random = no
	country = ETH

	# 462015 ITA

	name = "Italy refuses Ethiopian demands"
	desc = "Italy refused Ethiopian demands for self-government. They chose instead to continue the fighting."
	style = 0
	
	action_a = {
		name = "We will never surrender" # ok
		command = {  }
	}
}

#########################################################################
#  Ethiopian demands Claims on Italian East Africa (by Generalisimo)
#########################################################################
event = { 
	id = 552011
	random = no
	country = ETH

	trigger = {
		alliance = { country = ETH  country = ENG }
		NOT = {
			alliance = { country = ETH  country = ITA }
			}
		NOT = {
			OR = {
				event = 552007 # ETH, All
				event = 462016 # ITA, Eritrea
				event = 462018 # ITA, Somaliland
				}
			}
		}

	name = "Ethiopia claims Italian East Africa"
	desc = "Ethiopia, once allied with the British, demanded claims over the Italian possesions in East Africa."
	style = 0

	date = { day = 1 month = april year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = "Send our demands to the British" # ok
		command = { type = trigger which = 272004 } #ENG 
	}
}

#########################################################################
#  UK response to our claim (by Generalisimo)
#  552012 to 552014
#########################################################################
event = { 
	id = 552012
	random = no
	country = ETH

	#triggered by ENG 272003 A

	name = "Britain accepts the Ethiopian demands with conditions"
	desc = "Britain accepted the Ethiopian claims with the condition that military access would be provided to British troops within Ethiopian borders."
	style = 0
	
	action_a = {
		name = "Accept the British offer" # ok
		command = { type = addcore which = 1299 } # Obbia
		command = { type = addcore which = 1302 } # Mogadishu
		command = { type = access which = ENG }
		command = { type = trigger which = 272006 } #ENG 
	}
	action_b = {
		name = "Refuse the British offer" # No
		command = { type = trigger which = 272005 } #ENG 
	}
}

event = { 
	id = 552013
	random = no
	country = ETH

	#triggered by ENG 272003 B

	name = "Britain accepts the Ethiopian demands unconditionally"
	desc = "Britain accepted the Ethiopian claims unconditionally."
	style = 0
	
	action_a = {
		name = "We are sovereign once again" # ok
		command = { type = addcore which = 1299 } # Obbia
		command = { type = addcore which = 1302 } # Mogadishu
	}
}

event = { 
	id = 552014
	random = no
	country = ETH

	#triggered by ENG 272003 C

	name = "Britain refuses Ethiopian demands"
	desc = "Britain rejected the Ethiopian claims."
	style = 0
	
	action_a = {
		name = "We stand alone in our fight" # ok
		command = {  } # none
	}
}


###############################################
# 552015 - In Memoriam, HRH King Fu`ad (by OHgamer)
###############################################
event = { 
            id = 552015
            random = no
            country = EGY

            name = "The death of King Fu'ad (1917-1936)"
            desc = "With great sadness the government of Egypt announced that HRH King Fu'ad had passed through the gates of paradise. King Faruq then ascended the throne. Long live the King!" 
            style = 0 

            date = { day = 1 month = february year = 1936 } 
            offset = 15
            deathdate = { day = 1 month = august year = 1936 }

            action_a = {
                        name = "The nation grieves its loss" # 
                        command = { type = dissent value = -15 }
                        command = { type = headofstate which = 96062 } #King Faruq
                        }
}

#########################################################################
#  552016 - Creation of a Ethiopian Vassal w/Haile Selassie (by Generalisimo)
#########################################################################
event = { 
	id = 552016
	random = no
	country = ETH

	#triggered by ITA 462081

	name = "Creation of a Ethiopian Vassal with Haile Selassie"
	desc = "When Benito Mussolini took power in Italy, one of his first objectives was to resume plans to expand Italian influence in Ethiopia, thereby taking revenge for the humiliating defeat of the Italian army in 1896. The League of Nations voiced its disgust with this new war in Abysinia, but did not take any serious measures to try to stop it. Addis Abeba was in Italian hands by May, 1936."
	style = 0
	
	action_a = {
		name = "We are now a mere puppet state of Italy" # ok
		command = { type = alignment which = fascist value = 200 }
		command = { type = headofstate which = 65001 } # Haile Selassie
		command = { type = headofgovernment which = 65012 }
		command = { type = foreignminister which = 65013 }
		command = { type = armamentminister which = 65014 }
		command = { type = ministerofsecurity which = 65015 }
		command = { type = ministerofintelligence which = 65016 }
		command = { type = chiefofstaff which = 65017 }
		command = { type = chiefofarmy which = 65018 }
		command = { type = chiefofnavy which = 65019 }
		command = { type = chiefofair which = 65020 }
		command = { type = dissent value = 0 }
		command = { type = access which = ITA }
		}
}
#########################################################################
#  552017 - (MOR) Independent Morocco Setup (by Fallout_Boy)
#########################################################################
event = { 
	id = 552017 # 41185
	random = no
	country = MOR
	
	#Triggered by SPA 802039 (41184)
	
	name = "Independence!!!"
	desc = ""
	style = 0
	
	action_a = {
		name = "OK"
		command = { type = war which = SPA }
		command = { type = add_division which = infantry when = 1009 }
		command = { type = add_division which = militia when = 1009 }
		command = { type = manpowerpool value = 50 }
		command = { type = supplies value = 5000 }
		command = { type = oilpool value = 250 }
		command = { type = steelpool value = 250 }
		command = { type = coalpool value = 250 }
		command = { type = rubberpool value = 250 }
		command = { type = province_keypoints which = 1009 value = 2 }
		command = { type = province_manpower which = 1009 value = 3 }
		command = { type = industry which = 1009 value = 2 }
		### claims on French Morocco
		command = { type = addcore which = 1006 }   
		command = { type = addcore which = 1011 }
		command = { type = addcore which = 1012 }
		command = { type = addcore which = 1022 }
		command = { type = addcore which = 1023 }
		### add event granting military access through SPR?
	}
}

#########################################################################
#  552018 - (MOR) French Morocco Joins Independent Moroccan State (by Fallout_Boy)
#########################################################################
event = { 
	id = 552018 # 41188
	random = no
	country = MOR
	
	# Triggered by FRA 432045 (41187)

	name = "French Morocco has joined us!"
	desc = ""
	style = 0

	action_a = {
		name = "OK"
		command = { type = dissent value = -5 }
		command = { type = manpowerpool value = 100 }
	}
}
